package 每日一题;

import org.junit.Test;

import java.awt.event.MouseAdapter;

public class 构造矩形 {

    public int[] constructRectangle(int area) {
        int n =(int)Math.sqrt(area);
        while (area%n!=0)
            n--;
        return new int[]{area/n,n};
    }
    @Test
    public void test(){
        int m = 5;
        int n= 25;
        System.out.println(Math.pow(m, 2)==n);
        System.out.println((int)Math.sqrt(m));
    }
}
